#!/bin/bash

L=$(tail -n+2 Table1/col1.txt)
P=$(pwd)

[ -f Table1/mollist.txt ]&& rm -f Table1/mollist.txt;

cd ../prmcrd
#rm -f mollist.log
for m in $L
do
	A=$(echo $m | sed 's:_:__*:g' )
	B=$(ls | grep "^$A.crd" )
	C=${B:0:-4}

	#echo A=$A >> mollist.log
	#echo B=$B >> mollist.log
	#echo C=$C >> mollist.log
	

	echo $C >> ../SI/Table1/mollist.txt

done
cd $P


